package com.lmk.homework.w02;

public  abstract  class Employee {
    private String name;
    public int number;
    public MyDate birthday;

    public String getName() {
        return name;
    }

    public Employee(String name, int number, MyDate birthday) {
        this.name = name;
        this.number = number;
        this.birthday = birthday;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public MyDate getBirthday() {
        return birthday;
    }

    public void setBirthday(MyDate birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "名字" + name + '\'' +
                "编号" + number +
                "生日'" + birthday.toString() + '\'' +
                '}';
    }

    public abstract double earning();


}
